1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
5 <key>beforeRunningCommand</key>
8 <string>#!/usr/bin/ruby
12 I18n.load_path << File.join(ENV['TM_PROJECT_DIRECTORY'], 'config', 'locales', 'en.yml')
15 def const_missing(const)
20 def method_missing(method, *args)
28 def args_to_array(*args)
32 args = eval('args_to_array(' + ENV['TM_SELECTED_TEXT'] + ')')
34 if args.last.is_a?(Hash)
35 args.last.each { |k, v| args.last[k] = "**#{k}**" if v.nil? }
40 <key>fallbackInput</key>
43 <string>selection</string>
44 <key>keyEquivalent</key>
47 <string>Lookup Translation</string>
49 <string>showAsTooltip</string>
51 <string>7DAF30C3-0247-4E94-AA44-DD2E69A6E236</string>